﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" 
                   namespace="MM.Domain" 
                   assembly="MM.Domain">
  <class name="Movie" table="Movies">
    <id name="Id">
      <generator class="identity"/>
    </id>
    <property name="Name"/>
    <many-to-one name="Categoria" class="Categoria" column="IdCategoria"/>
    <property name="Synopsis"/>
    <property name="Year"/>
  </class>
  </hibernate-mapping>